<?php
session_start();
require_once("../inc/database.php");
require_once("../inc/libs/functions.php");
require_once('../inc/libs/MySQL_connection.php');
	
	$db = new MySQLConnection($config['sql_host'], $config['sql_username'], $config['sql_password'], $config['sql_database']);
	$db->Connect();
	
	unset($config['sql_password']);

if (isset($_SESSION['EX_admin']))
	{
		$is_online = true;
	}
	else
	{
		$is_online = false;
	}

if(isset($_SESSION['EX_admin'])){
    $sql				= $db->Query("SELECT *,UNIX_TIMESTAMP(`online`) AS `online` FROM `users` WHERE `login`='{$_SESSION['EX_admin']}'");
    $data				= $db->FetchArray($sql);
}	
?>